package cn.kkcxy.blog.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @BelongsProject: kkcxy-blog
 * @BelongsPackage: cn.kkcxy.blog.core.dto
 * @Author: kkcxy
 * @CreateTime: 2024-09-13 23:46
 * @Description: 分页结果
 * @Version: 1.0
 */
@Data
@ToString
@Schema(description = "分页结果")
public class PageResult<T> implements Serializable {

    @Schema(description = "总条数")
    private Long count;

    @Schema(description = "分页数据")
    private List<T> items;
}
